<?php
	include_once $_SERVER[DOCUMENT_ROOT].'/clientes/src/classes/modelo/Principal.php';

    session_start();

    if(!$_SESSION['id_usuario']){
        header('Location: no_session.php');
    }

    if($_GET['id']){
        @$_SESSION['id_usuario_perfil'] = $_GET['id'];
    }

    $id_usuario_perfil = @$_SESSION['id_usuario_perfil'];
    $usuario_perfil = new Usuario($id_usuario_perfil);
    $usuario_perfil->update_from_database_by_id();

    $tipo_usuario_perfil = $usuario_perfil->get_tipo();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PorARTfolio</title>
<link href="css/style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="scripts/zxml.js"></script>
<script type="text/javascript" src="scripts/cliente/breadcrumb.js"></script>
<script type="text/javascript" src="scripts/servidor/busqueda.js"></script>
<script type="text/javascript" src="scripts/servidor/perfilServer.js"></script>
<script type="text/javascript" src="scripts/servidor/noticiasServer.js"></script>
<script type="text/javascript" src="scripts/cliente/perfilClient.js"></script>
<script type="text/javascript" src="scripts/cliente/noticiasClient.js"></script>
<script language="javascript" src="scripts/cliente/prototype.js"></script>
<script language="javascript" src="scripts/cliente/autocomplete.js"></script>
</head>
<body onload="actualizarMigajas();mostrarMigajas();revisarNoticias();">
<center>
<table align="center" class="content">
	<tr><td><?php include ('html/header.html'); ?></td></tr>
	<tr><td><?php include ('html/menu.html'); ?></td></tr>
    <tr><td align="center"><h2>Noticias</h2></td></tr>
    <tr><td><div id="div_noticias" align="center"></div></td></tr>
    <tr><td><?php include ('contenido/publicar_noticia.php'); ?></td></tr>
</table>
<?php include ('html/footer.html'); ?>
</center>
</body>
</html>

